<%--
    Document   : index.jsp
    Created on : Sep 21, 2013, 3:57:07 AM
    Author     : yoko
--%>

<%@page import="org.apt.matrimony.beans.AccountDetailBeans"%>
<%@page import="org.apt.matrimony.methods.selects"%>
<%@page import="org.apt.matrimony.beans.RequestBeans"%>
<%@page import="org.apt.matrimony.beans.CasteBeans"%>
<%@page import="org.apt.matrimony.beans.MotherTongueBeans"%>
<%@page import="org.apt.matrimony.beans.ReligionBeans"%>
<%@page import="java.util.List"%>
<%@page import="org.apt.matrimony.beans.CountryBeans"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
      <head>
        <link href="css/template-home.css" rel="stylesheet" type="text/css" media="all" />
        <link href="css/news_ticker/ticker-style.css" rel="stylesheet" type="text/css" />
        <!-- JS FOR SuperFish DropDown Menu ############################# -->
        <link href="css/dropDownMenu/superfish.css" rel="stylesheet" type="text/css" media="all" />
        <script type="text/javascript" src="scripts/jquery1.6.2_production.js"></script>
        <script type="text/javascript" src="scripts/superfish.js"></script>
        <script type="text/javascript" src="js/Default.js"></script>
        <!-- JS FOR SCROLLING NEWS TICKER ############################# -->
        <script type="text/javascript" src="scripts/jquery.ticker.js"></script>

        <!--<script type="text/javascript" src="js/jquery_min.js"></script>-->

        <script type="text/javascript" src="js/fancyzoom.min.js"></script>
        <script type="text/javascript" src="js/login.js"></script>
        <link href="css/Default1.css" rel="stylesheet" type="tetext/css"/>
        <script language="javascript" type="text/javascript">
            /*SCRIPT INITIALIZATION FOR DROPDOWN MENU###################### */
            $(document).ready(function(){
                $("ul.sf-menu").superfish();
                $('div.photo a').fancyZoom({scaleImg: true, closeOnClick: true});

                $('#medium_box_link').fancyZoom({width:400, height:300});

                $('#large_box_link').fancyZoom();

                $('#flash_box_link').fancyZoom();
            });

            /* SCRIPT FOR SCROLLING NEWS TICKER ############################### */

            $(function () {
                $('#js-news').ticker();
            });

        </script>

        <!-- SLIDER FOR PROFESSIONAL SEARCH IMAGE SLIDER######################## -->
          <link rel="stylesheet" href="css/slider.css"/>
            <script src="scripts/jquery.easing.js" type="text/javascript" language="javascript"></script>
            <script src="scripts/slides.min.jquery.js"></script>
                     <script language="javascript">
                $(function(){
                    $('#slides').slides({
                        preload: true,
                        preloadImage: 'img/loading.gif',
                        play: 3000,
                        pause: 2500,
                        hoverPause: true
                    });
                });
                <!-- Function to OPEN NEW WINDOW FOR SITE TOUR -->
                function poponload()
                {
                    testwindow = window.open("site_tour/site_tour.jsp", "MatrimonyMatch_SiteTour", "resizable=0, menubar=0, toolbar=0, location=0,status=0,scrollbars=0,width=835,height=690");
                    testwindow.moveTo(200, 200);
                }
            </script>
                            <script language="javascript" src="js/search.js" type="text/javascript"></script>
            <script language="javascript" src="js/Default.js" type="text/javascript"></script>
      <
    </head>
    <body>

        <div id="wrapper">

            <!-- HEADER STARTS HERE ###################################################  -->
            <jsp:include page="header_member.jsp"></jsp:include>
            <!-- HEADER ENDS HERE ###################################################  -->
            <!-- CONTENT AREA STARTS HERE ###################################################  -->
            <div id="content_area">
                <!-- SHOWCASE AND QUICK SEARCH SECTIONS STARTS HERE ######################################## -->
                <div id="showcase">

                    <ul id="wrap">

                        <li class="top"></li>

                        <li class="middle">

                            <div id="left" style="overflow:hidden;">

                                <h2 class="caption">

                                    <div id="ticker-wrapper" >

                                        <ul>

                                            <li class="news-item">Offline Comment list</li>
                                        </ul>

                                    </div>

                                </h2>
                                <jsp:useBean id="list" scope="session" class="org.apt.matrimony.methods.selects"></jsp:useBean>
                                

                                    <!-- HOMEPAGE MAIN BANNER MODULE WILL COME HERE ######################## -->
                                    <%
        String user="";
    Object obj=session.getAttribute("ActiveUser");
    if(obj!=null){
        user=(String)obj;
        }
%>
                                <script src="js/dropdowlist.js"></script>
                                <div id="left">
                                    <table class="wrapper1" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td height="290" valign="top" >
                                                <table  width="100%" border="0" align="center" cellpadding="5" cellspacing="0" class="padding_5p" style="margin-top:5px;">
                                                        <%
                                                                List<RequestBeans> requestList=list.getAllRequest();

                                                                    for(int i=0; i<requestList.size();i++){
                                                                             %>
                                                                    <tr>
                                                                        <td colspan="2" ><%= requestList.get(i).getRequest_Time() %>:</td>
                                                                    </tr>
                                                         <tr>
                                                             <td><%= selects.getAllRequestSenderNameById(requestList.get(i).getRequest_Sender_Id())  %> :</td>
                                                            <td><%= requestList.get(i).getRequest_Text() %></td>
                                                          </tr>
                                                                <%}%>
                                                                <tr>
                                                                    <td colspan="2" style="border-top:dotted 1px #e9c491"></td>
                                                                </tr>
                                                                <tr>
                                                                    <td colspan="2"><input type="text" value="<%= user %>" style="display: none" name="username"></input> Reply :</td>
                                                                </tr>
                                                                <tr>
                                                                    <td colspan="2">
                                                                        <form action="doSendRequest" method="post">
                                                                    <table  width="100%">
                                                                        <tr>
                                                                            <td>
                                                                                <input type="text" value="" name="comment" class="textbox1"></input>
                                                                            </td>
                                                                            <td><input text="text" value ="<%=requestList.get(1).getRequest_Sender_Id()%>" name="senderId"/></td>
                                                                            <td align="right">
                                                                                <input type="submit" value="Send" name="submit"></input>
                                                                            </td>
                                                                        </tr>
                                                                    </table></form>
                                                                    </td>
                                                                </tr>
                                                </table>
                                                </td>
                                        </tr>
                                                                 <tr>

                                    </tr>
                                    </table>
                                </div>

                            </div>

                            <div id="right">

                                <table class="wrapper1" border="0" cellspacing="0" cellpadding="0">

                                    <tr>

                                        <td class="td11"></td>

                                        <td class="td12"></td>

                                        <td class="td13"></td>

                                    </tr>

                                    <tr>

                                        <td class="td21"></td>

                                        <td height="290" valign="top"><h2 style="height:24px; display:block; line-height:24px;"> <img src="images/icons/search_16.png" width="24" height="24" style="float:left; margin-right:5px;" />Quick Search</h2>
<!-- SEARCH FORM START HERE ######################## -->
                                            <form id="searchform" name="searchform" method="post" action="http://www.maxwebdesign.asia/demo/numinousmatch/searchresult.php">

                                                <table  width="95%" border="0" align="center" cellpadding="5" cellspacing="0" class="padding_5p" style="margin-top:5px;">

                                                    <tr>

                                                        <td width="40%">Looking for</td>

                                                        <td width="30%"><label>

                                                                <input name="lookingfor" type="radio" id="lookingfor" value="Female" checked="checked" />

                                                                Bride</label></td>

                                                        <td align="right"><label>

                                                                <input type="radio" name="lookingfor" id="lookingfor" value="Male" />

                                                                Groom</label></td>

                                                    </tr>

                                                    <tr>

                                                        <td>Age</td>

                                                        <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">

                                                                <tr>

                                                                    <td><label>

                                                                            <select name="selectagefrom" id="selectagefrom">
                                                                                <%for(int i=18; i<61; i++){%>
                                                                                <option value="<%=i%>"><%=i%></option>
                                                                                <%}%>
                                                                            </select>

                                                                        </label></td>

                                                                    <td width="30" align="center">To</td>

                                                                    <td align="right"><select name="selectageto" id="selectageto">
                                                                                <%for(int i=18; i<61; i++){%>
                                                                                <option value="<%=i%>"><%=i%></option>
                                                                                <%}%>
                                                                        </select></td>
                                                                </tr>
                                                            </table></td>
                                                    </tr>

                                                    <tr>

                                                        <td>Religion</td>

                                                        <td colspan="2"><select onchange="caste_resetRF(this.value)" class="width_100" size="1" id="religion" name="religion">
                                                                <option selected="" value="0">-Select-</option>
                                                                <%
                                                                List<ReligionBeans> religionList=list.selectAllReligions();
                                                                    for(int i=0; i<religionList.size();i++){
                                                                    %>
                                                                    <option value="<%= religionList.get(i).getReligion_Id() %>"><%= religionList.get(i).getReligion_Name() %></option>
                                                                <%}%>
                                                                </select></td>
                                                    </tr>
                                                    <tr>

                                                        <td>Mother Tongue</td>

                                                        <td colspan="2"><div align="left">

                                                                <select onchange="do_request(this.value);" class="width_100"  size="1" id="Language" name="Language">
                                                                    <option selected="" value="0">-Select-</option>
                                                                    <option value="vietnamese">Vietnamese</option>
                                                                    <option value="english">English</option>
                                                                    <option value="indian">Indian</option>
                                                                    <option value="korean">Korean</option>
                                                                    <option value="japanese">Japanese</option>
                                                                    <option value="french">French</option>
                                                                    <option value="spanish">Spanish</option>
                                                                    <option value="1">-other-</option>
                                                                </select>

                                                            </div></td>

                                                    </tr>

                                                    <tr>

                                                        <td><div align="left" id="caste">Caste</div></td>

                                                        <td colspan="2"  id="caste_rel">     <select name="caste" class="width_100" id="caste">
                                                                <option value="0">--Select--</option>
                                                                <%
                                                                List<CasteBeans> casteList=list.selectAllCaste();
                                                                    for(int i=0; i<casteList.size();i++){
                                                                    %>
                                                                    <option value="<%= casteList.get(i).getCaste_Id() %>"><%= casteList.get(i).getCaste_Name() %></option>
                                                                <%}%>
                                                            </select></td>

                                                    </tr>

                                                    <tr>
                                                        <td>Country</td>

                                                        <td colspan="2"><select name="country" class="width_100" id="country">

                                                                <option value="">-Select-</option>
                                                                <%
                                                                List<CountryBeans> countryList=list.selectAllCountries();
                                                                    for(int i=0; i<countryList.size();i++){
                                                                    %>
                                                                    <option value="<%= countryList.get(i).getCountry_Id() %>"><%= countryList.get(i).getCountry_Name() %></option>
                                                                <%}%>
                                                                <option value="1">-other-</option>
                                                            </select></td>

                                                    </tr>

                                                    <tr>

                                                        <td colspan="2" align="right"><label>

                                                                <input type="checkbox" name="photo" id="photo" />

                                                                Only with photo</label></td>

                                                        <td align="right" style="padding-left:5px;"><a href="javascript:document.searchform.submit();" class="button-small square-orange uppercase float_right"><span></span> Search </a></td>

                                                    </tr>

                                                    <tr>

                                                        <td colspan="3" style="border-top:dotted 1px #e9c491"><table width="100%" border="0" cellspacing="0" cellpadding="0" >

                                                                <tr>

                                                                    <td align="left"><a href="id_search.jsp" class="link">Profile ID Search</a></td>

                                                                    <td align="right"><a href="search_page.jsp" class="link">More Search Options</a></td>

                                                                </tr>

                                                            </table></td>

                                                    </tr>

                                                </table>

                                            </form></td>

                                        <td class="td23"></td>

                                    </tr>

                                    <tr>

                                        <td class="td31"></td>

                                        <td class="td32"></td>

                                        <td class="td33"></td>

                                    </tr>

                                </table>
                            </div>
                        </li>
                        <li class="bottom"></li>
                    </ul>
                </div>
<!-- SEARCH FORM START HERE ######################## -->
                <!-- SHOWCASE AND QUICK SEARCH SECTIONS ENDS HERE ######################################## -->
               <!--CONTENT AREA SECTION ONE STARTS HERE ############################################# -->
                <div id="Content_section1"  style="width:970px;  height:159px;  clear:both;">
 <div style="width: 600px; float:left; margin-left:10px;">
                        <table class="wrapper2" border="0" cellspacing="0" cellpadding="0" style="width:600px;">
                            <tr><td valign="top"height="30"><h1>Most Active</h1></td>
                                <td valign="top"><h1>Most Regent</h1></td>
                            </tr>
 <tr><td><%
                                                                List<AccountDetailBeans> accountList=list.selectAllAccountDetailsOrderByDayExpired(user);
                                                                    for(int i=0; i<accountList.size();i++){
                                                                    %>
                                                                     <div class="clsList">
           <div>
               <a class="tooltip"  href="viewprofile.jsp?AccountId=<%=accountList.get(i).getFull_Name() %>" > <img src="../images/profiles/<%=accountList.get(i).getImage_Path() %>" hspace="5"  vspace="5" border="0" class="imageborder" width="100" height="100" /></a>
		   </div>
          <div style="text-align:center;">
              <strong><a href="viewprofile.jsp?AccountId=<%=accountList.get(i).getFull_Name() %>" target="_blank" style="text-decoration:none" class="tooltip"><%= accountList.get(i).getFull_Name() %></a></strong> <br/> <strong><%=accountList.get(i).getAge() %>,&nbsp;<%= accountList.get(i).getGender() %></strong>
	      </div>
		</div>  
<%}%>
                                </td>
                                 <td> <%
                                                                List<AccountDetailBeans> aList=list.selectAllAccountDetailsOrderByDayExpired(user);
                                                                    for(int i=0; i<aList.size();i++){
                                                                    %>
                                                                     <div class="clsList">
           <div>
		     <a class="tooltip"  href="viewprofile.jsp?AcountId=<%= accountList.get(i).getAccount_Details_Id() %>" > <img src="../images/profiles/<%=aList.get(i).getImage_Path() %>" hspace="5"  vspace="5" border="0" class="imageborder" width="100" height="100" /></a>
		   </div>
          <div style="text-align:center;">
              <strong><a href="viewprofile.jsp?AcountId=<%= aList.get(i).getAccount_Details_Id() %>" target="_blank" style="text-decoration:none" class="tooltip"><%= aList.get(i).getFull_Name() %></a></strong> <br/> <strong><%=aList.get(i).getAge() %>,&nbsp;<%= aList.get(i).getGender() %></strong>
	      </div>
		</div>
<%}%>
                                     </td>
 </tr>
                        </table>
</div>
                </div>
                    <div style="width:306px; height:171px; margin-left:10px; float:right; margin-left:10px;" > <a href="#"><img src="images/banner2.jpg" width="300" height="151"  /></a><span class="clear float_right gray">Advertisement</span></div>
                </div>

                <!--CONTENT AREA SECTION ONE ENDS HERE ############################################# -->



                <!--CONTENT AREA SECTION TWO STARTS HERE ############################################# -->
                    <div id="Content_section2"  style="width:975px;  height:150px;  clear:both;">
                      <iframe src="adv.jsp" width="975px" height="300px" frameborder="0" scrolling="no" align="middle"></iframe>
                    </div>
                
        </div>
 </body>
</html>
